package com.woniuxy.micropurchaseserver.suppliermsg.service.impl;

import com.woniuxy.micropurchaseserver.bean.SupplierBean;
import com.woniuxy.micropurchaseserver.suppliermsg.mapper.SupplierMapper;
import com.woniuxy.micropurchaseserver.suppliermsg.service.SupplierService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class SupplierServiceImpl implements SupplierService {
    @Resource
    private SupplierMapper supplierMapper;
    @Override
    public List<SupplierBean> findAllSupplier(SupplierBean supplierBean) {
        return supplierMapper.findAllSupplier(supplierBean);
    }

    @Override
    public Integer deleteSupplierById(Integer id) {
        return supplierMapper.deleteSupplierById(id);
    }

    @Override
    public Integer UpdateSupplier(SupplierBean supplierBean) {
        return supplierMapper.UpdateSupplier(supplierBean);
    }

    @Override
    public Long InsertSupplier(SupplierBean supplierBean) {
        return supplierMapper.InsertSupplier(supplierBean);
    }
}
